﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace SiteManager.Core.Helper
{
    public class StringHelper
    {
        public static string FormatDateTimeString
        {
            get
            {
                return "yyyy-MM-dd";
            }
        }
        public static string FormatDateTime(DateTime datetime)
        {
            if (datetime == null)
                return string.Empty;
            return datetime.ToString(FormatDateTimeString);
        }
    }
}